<?php

class View
{
    protected $template = '';

    public $data = array();

    public function __construct()
    {

    }

    public function render($template)
    {
        extract($this->data);
        ob_start();
        require ROOT . '/application/views/' . $template . '.php';
        return ob_get_clean();
    }
}
